package demo;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

/**
 * 添加注释
 */
public class HelloWorld {
    public static void main(String[] args) {
        try (FileOutputStream fos =new FileOutputStream("fos.txt");){
            String str="大家好~~~~";
            fos.write(str.getBytes(StandardCharsets.UTF_8));
            System.out.println("写出完毕");
            System.out.println("分支上进行了修改操作");
            System.out.println("在主线上进行操作");
            System.out.println("在分支上第二次修改");
            System.out.println("你好");
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
